package com.sanjiahantang.youjiarole.utils;

import java.util.Map;

/**
 * Created by admin on 2017/10/23.
 */

public class MapUtil {

    public static String getKey(Map<String,String> map, String value){
        String key="";
        for (Map.Entry<String, String> entry : map.entrySet()) {
            if(value.equals(entry.getValue())){
                key=entry.getKey();
            }
        }
        return key;
    }

}
